﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OccurenceInvoices.ascx.cs" Inherits="OccurrencesWeb.UserControls.Occurrences.OccurenceInvoices" %>

<asp:UpdatePanel ID="upInvoices" runat="server">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnAddInvoice" EventName="Click" />
    </Triggers>
    <ContentTemplate>
        <asp:Repeater ID="rptInvoices" OnItemDataBound="rptInvoices_ItemDataBound" runat="server">
            <HeaderTemplate>
                <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:Literal ID="litInvoiceNumber" runat="server"></asp:Literal>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>

    </ContentTemplate>
</asp:UpdatePanel>

<a href="javascript:void(0);" class="open-popup-button">Adicionar nova nota fiscal</a>

<div class="add-invoice-popup" style="display:none;">
    <asp:TextBox ID="txtNewInvoiceNumber" runat="server"></asp:TextBox>
    <asp:LinkButton ID="btnAddInvoice" runat="server" OnClick="btnAddInvoice_Click" Text="Adicionar Nota" CssClass="confirm"></asp:LinkButton>
    <a href="javascript:void(0);" class="cancel">Cancel</a>
</div>